<?php

return [
    // ['GET', '/news/', 'Fenshendashi.News.getList'],
    // ['GET', '/news/list/{page:\d+}.html', 'Fenshendashi.News.getList'],
    // ['GET', '/news/{id:\d+}.html', 'Fenshendashi.News.get'],
    //后台
      // 验证码
      ['GET', "/api/v1/auth/captcha", 'Portal.Auth.Captcha'],
      //登陆
      ['POST', "/api/v1/auth/login", 'Portal.Auth.Login'],


  //-------------------------------------------------------------------------------
     //用户接口
     //用户分页列表
     ['GET', "/api/v1/users/page", 'Portal.Admin.TableList'],
     //新增用户
     ['POST', "/api/v1/users", 'Portal.Admin.CreateData'],
      //用户表单数据
     ['GET', "/api/v1/users/{id:\d+}/form", 'Portal.Admin.GetData'],
      //修改用户
     ['PUT', "/api/v1/users/{id:\d+}", 'Portal.Admin.UpdateData'],
     //批量删除用户
     ['DELETE', "/api/v1/users/{ids:[0-9,]+}", 'Portal.Admin.DeleteDataIDs'],
     //重置用户密码
     ['PATCH', "/api/v1/users/{id:\d+}/password", 'Portal.Admin.ResetPassword'],
     //重置用户密码
     ['PUT', "/api/v1/users/{id:\d+}/password/reset", 'Portal.Admin.ResetPassword'],
     //获取个人中心用户信息
     ['GET', "/api/v1/users/profile", 'Portal.Admin.Profile'],
     //修改个人信息
     ['PUT', "/api/v1/users/profile", 'Portal.Admin.UpdateProfile'],
     //修改用户个人密码
      ['PUT', "/api/v1/users/password", 'Portal.Admin.AlterPassword'],
      //注销登录
      ['DELETE', "/api/v1/auth/logout", 'Portal.Admin.Logout'],
      //获取当前登录用户信息
      ['GET', "/api/v1/users/me", 'Portal.Admin.GetMeData'],
  //-------------------------------------------------------------------------------
     //部门接口
     //部门列表
     ['GET', "/api/v1/dept", 'Portal.Dept.DeptLists'],
     //新增部门
     ['POST', "/api/v1/dept", 'Portal.Dept.CreateData'],
     //获取部门表单数据
     ['GET', "/api/v1/dept/{id:\d+}/form", 'Portal.Dept.GetData'],
     //修改部门
     ['PUT', "/api/v1/dept/{id:\d+}", 'Portal.Dept.UpdateData'],
     //删除部门
     ['DELETE', "/api/v1/dept/{ids:[0-9,]+}", 'Portal.Dept.DeleteDataIDs'],
      //部门下拉列表
     ['GET', "/api/v1/dept/options", 'Portal.Dept.Options'],
  //-------------------------------------------------------------------------------
     //角色接口
      //角色分页列表
     ['GET', "/api/v1/roles/page", 'Portal.Role.TableList'],
     //角色下拉列表
     ['GET', "/api/v1/roles/options", 'Portal.Role.Options'],
     //新增角色
     ['POST', "/api/v1/roles", 'Portal.Role.CreateData'],
     //角色表单数据
     ['GET', "/api/v1/roles/{id:\d+}/form", 'Portal.Role.GetData'],
     //修改角色
     ['PUT', "/api/v1/roles/{id:\d+}", 'Portal.Role.UpdateData'],
     //删除角色
     ['DELETE', "/api/v1/roles/{ids:[0-9,]+}", 'Portal.Role.DeleteDataIDs'],
     //获取角色的菜单ID集合
     ['GET', "/api/v1/roles/{id:\d+}/menuIds", 'Portal.Role.menuIds'],
     //分配菜单(包括按钮权限)给角色
     ['PUT', "/api/v1/roles/{id:\d+}/menus", 'Portal.Role.menus'],
  //-------------------------------------------------------------------------------
  //字典接口
  //字典分页列表
     ['GET', "/api/v1/dicts/page", 'Portal.Dict.TableList'],
  //新增字典
     ['POST', "/api/v1/dicts", 'Portal.Dict.CreateData'],
  //字典表单数据
     ['GET', "/api/v1/dicts/{id:\d+}/form", 'Portal.Dict.GetData'],
  //修改字典
     ['PUT', "/api/v1/dicts/{id:\d+}", 'Portal.Dict.UpdateData'],
  //删除字典
    ['DELETE', "/api/v1/dicts/{ids:[0-9,]+}", 'Portal.Dict.DeleteDataIDs'],

  //-------------------------------------------------------------------------------
  //字典项
   //字典项分页列表
  ['GET', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items/page", 'Portal.DictItem.TableList'],
   //字典项列表
  ['GET', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items", 'Portal.DictItem.Items'],
   //新增字典项
  ['POST', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items", 'Portal.DictItem.CreateData'],
  //字典项表单数据
  ['GET', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items/{id:\d+}/form", 'Portal.DictItem.GetData'],
  //修改字典项
  ['PUT', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items/{id:\d+}", 'Portal.DictItem.UpdateData'],
  //删除字典项
  ['DELETE', "/api/v1/dicts/{dictCode:[a-zA-Z0-9_]+}/items/{ids:[0-9,]+}", 'Portal.DictItem.DeleteDataIDs'],

  //-------------------------------------------------------------------------------
  //菜单接口
  //菜单列表
  ['GET', "/api/v1/menus", 'Portal.Menus.Menus'],
 //菜单下拉列表
  ['GET', "/api/v1/menus/options", 'Portal.Menus.Options'],
  //菜单表单数据
  ['GET', "/api/v1/menus/{id:\d+}/form", 'Portal.Menus.GetData'],
  //修改菜单
  ['PUT', "/api/v1/menus/{id:\d+}", 'Portal.Menus.UpdateData'],
  //新建菜单
  ['POST', "/api/v1/menus", 'Portal.Menus.CreateData'],
  //删除菜单
   ['DELETE', "/api/v1/menus/{ids:[0-9,]+}", 'Portal.Menus.DeleteDataIDs'],
     //删除菜单
   //修改菜单显示状态
   ['PATCH', "/api/v1/menus/{id:\d+}", 'Portal.Menus.Visible'],
   //菜单路由列表
   ['GET', "/api/v1/menus/routes", 'Portal.Menus.Routes'],
//-------------------------------------------------------------------------------
  //文件接口
  //文件上传
 ['POST', "/api/v1/files", 'Portal.Upload.Go'],
 ['DELETE', "/api/v1/files", 'Portal.Upload.Delete'],

//-------------------------------------------------------------------------------
 //系统配置

 //系统配置分页列表
  ['GET', "/api/v1/config/page", 'Portal.Config.TableList'],
  //新增系统配置
  ['POST', "/api/v1/config", 'Portal.Config.CreateData'],
  //获取系统配置表单数据
  ['GET', "/api/v1/config/{id:\d+}/form", 'Portal.Config.GetData'],
  //修改系统配置
  ['PUT', "/api/v1/config/{id:\d+}", 'Portal.Config.UpdateData'],
  //删除系统配置
  ['DELETE', "/api/v1/config/{id:\d+}", 'Portal.Config.DeleteData'],
  //刷新系统配置缓存
  ['PUT', "/api/v1/config/refresh", 'Portal.Config.Refresh'],

//-------------------------------------------------------------------------------
//日志接口
//获取访问趋势
['GET', "/api/v1/logs/visit-trend", 'Portal.Log.VisitTrend'],
//获取访问统计
['GET', "/api/v1/logs/visit-stats", 'Portal.Log.VisitStats'],
//日志分页列表
['GET', "/api/v1/logs/page", 'Portal.Log.TableList'],


//-------------------------------------------------------------------------------

//通知公告

//获取我的通知公告分页列表
  ['GET', "/api/v1/notices/my-page", 'Portal.Notice.TableList'],
];
